﻿/*
 * Created by SharpDevelop.
 * User: IEscarro
 * Date: 8/25/2009
 * Time: 9:54 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;

namespace Miming.Model
{
	/// <summary>
	/// Description of Vendor.
	/// </summary>
	public class Vendor
	{
		int id;
		double openingBalance;
		string companyName;
		string address;
		string contact;
		string email;
		string cC;
		bool eligibleFor1099;
		
		public virtual bool EligibleFor1099 {
			get { return eligibleFor1099; }
			set { eligibleFor1099 = value; }
		}
		BillingRateLevel billingRateLevel;
		
		public virtual BillingRateLevel BillingRateLevel {
			get { return billingRateLevel; }
			set { billingRateLevel = value; }
		}
		Account accountPrefill1;
		
		public virtual Account AccountPrefill1 {
			get { return accountPrefill1; }
			set { accountPrefill1 = value; }
		}
		Account accountPrefill2;
		
		public virtual Account AccountPrefill2 {
			get { return accountPrefill2; }
			set { accountPrefill2 = value; }
		}
		Account accountPrefill3;
		
		public virtual Account AccountPrefill3 {
			get { return accountPrefill3; }
			set { accountPrefill3 = value; }
		}
		bool inactive;
		
		public virtual bool Inactive {
			get { return inactive; }
			set { inactive = value; }
		}
		
		public virtual string CC {
			get { return cC; }
			set { cC = value; }
		}
		string printOnCheckAs;
		
		public virtual string PrintOnCheckAs {
			get { return printOnCheckAs; }
			set { printOnCheckAs = value; }
		}
		string accountNo;
		
		public virtual string AccountNo {
			get { return accountNo; }
			set { accountNo = value; }
		}
		VendorType vendorType;
		
		public virtual VendorType VendorType {
			get { return vendorType; }
			set { vendorType = value; }
		}
		double creditLimit;
		
		public virtual double CreditLimit {
			get { return creditLimit; }
			set { creditLimit = value; }
		}
		string taxId;
		
		public virtual string TaxId {
			get { return taxId; }
			set { taxId = value; }
		}
		
		public virtual string Email {
			get { return email; }
			set { email = value; }
		}
		
		public virtual string Contact {
			get { return contact; }
			set { contact = value; }
		}
		string phone;
		
		public virtual string Phone {
			get { return phone; }
			set { phone = value; }
		}
		string fax;
		
		public virtual string Fax {
			get { return fax; }
			set { fax = value; }
		}
		string altPhone;
		
		public virtual string AltPhone {
			get { return altPhone; }
			set { altPhone = value; }
		}
		string altContact;
		
		public virtual string AltContact {
			get { return altContact; }
			set { altContact = value; }
		}
		
		public virtual string Address {
			get { return address; }
			set { address = value; }
		}
		
		public virtual string CompanyName {
			get { return companyName; }
			set { companyName = value; }
		}
		Name legalName = new Name();
		
		public virtual Name LegalName {
			get { return legalName; }
			set { legalName = value; }
		}
		
		public virtual double OpeningBalance {
			get { return openingBalance; }
			set { openingBalance = value; }
		}
		DateTime balanceAsOf = DateTime.Now;
		
		public virtual DateTime BalanceAsOf {
			get { return balanceAsOf; }
			set { balanceAsOf = value; }
		}
		Terms terms;
		
		public virtual Terms Terms {
			get { return terms; }
			set { terms = value; }
		}
		
		public virtual int Id {
			get { return id; }
			set { id = value; }
		}
		string name;
		
		public virtual string Name {
			get { return name; }
			set { name = value; }
		}
		
		public Vendor()
		{
		}
		
		public override string ToString()
		{
			return string.Format("{0}" + Environment.NewLine + "{1}", name, address);
		}
	}
}
